Harmonic oscillator

Lagrangian Mechanics viewpoint

It is a particle moving in a potential

$$ u(x)=\frac{k}{2}x^2 $$

In Lagrangian Mechanics approach we consider the Lagrangian

$$ \mathcal{L} = T - U = \frac{1}{2}m\dot{x}^2 - \frac{1}{2}kx^2 $$

Euler-Lagrange tell us

$$ \frac{\partial \mathcal{L}}{\partial x} = \frac{d}{dt} \frac{\partial \mathcal{L}}{\partial \dot{x}} $$

$$\frac{\partial \mathcal{L}}{\partial x} = -kx$$

$$ \frac{d}{dt} \frac{\partial \mathcal{L}}{\partial \dot{x}} = \frac{d}{dt} (m\dot{x}) = m\ddot{x} $$

and so

$$ m\ddot{x} = -kx $$

Hamiltonian point of view

The Hamiltonian for a simple harmonic oscillator is given by:

$$ H = \frac{p^2}{2m} + \frac{1}{2}m\omega^2 q^2 $$

where $p$ is the momentum, $m$ is the mass, $\omega$ is the angular frequency, and $q$ is the position.

The corresponding Hamiltonian equations are:

$$ \dot{p} = -\frac{\partial H}{\partial q} = -m\omega^2 q $$

and

$$ \dot{q} = \frac{\partial H}{\partial p} = \frac{p}{m} $$

These equations describe the time evolution of the momentum and position of the harmonic oscillator. The first equation is essentially Newton's second law (force equals mass times acceleration), and the second equation is the definition of velocity in terms of momentum.

Related: quantum harmonic oscillator.

________________________________________

________________________________________

________________________________________

Author of the notes: Antonio J. Pan-Collantes

antonio.pan@uca.es


INDEX: